package svc

import (
	"modbus/device/analysis"
	"modbus/rpcServer/internal/config"
)

type ServiceContext struct {
	Config config.Config
	DevMap *map[string]*analysis.DevInfoTable
}

func NewServiceContext(c config.Config, devMap *map[string]*analysis.DevInfoTable) *ServiceContext {
	return &ServiceContext{
		Config: c,
		DevMap: devMap,
	}
}
